// import { exInputNumber, exInput, exSelect } from '@ve/common/components/extension'

export default {
  VERSION: '20220408',
  type: 'uiBaseLayout',
  name: '基础布局',
  icon: 'checkbox-blank-line',
  svg: 'jichu_buju',
  list: [
    {
      _id: 'uiChartFlexbox_dpd41l',
      VERSION: '20220408',
      type: 'uiChartFlexbox',
      name: '盒子',
      icon: 'checkbox-blank-line',
      extension: {
        boxHeight: { type: 'exInputNumber', controlsPosition: 'right', name: '高度', value: 90, min: 1, max: 100 },
        requestSet: { type: 'exRequestSet', name: '接口配置', value: { busList: [], data: [], api: '', method: '', getDataKey: '' } },
        flexDer: {
          type: 'exSelect',
          name: '子组件排布方向',
          value: 'row',
          options: [
            { label: '横', value: 'row' },
            { label: '竖', value: 'col' },
          ],
        },
        justifyAlign: {
          type: 'exRadioGroup',
          name: '水平位置',
          value: 'start',
          list: [
            { label: '居左', value: 'start' },
            { label: '居中', value: 'center' },
            { label: '居右', value: 'end' },
          ],
        },
        itemsAlign: {
          type: 'exRadioGroup',
          name: '垂直方向',
          value: 'flex-start',
          list: [
            { label: '居上', value: 'flex-start' },
            { label: '居中', value: 'center' },
            { label: '居下', value: 'flex-end' },
          ],
        },
        bgColor: { type: 'exSetChartColor', name: '背景颜色', value: '#fff' },
        padding: { type: 'exInputNumber', name: '内边距', value: 0, min: 0, max: 12 },
        justify: { type: 'exJustifySelect', name: '换行', value: 'flex-wrap' },
        shadow: { type: 'exShadowSelect', name: '盒阴影', value: 'shadow-none' },
        border: { type: 'exBorderSelect', name: '边框厚度', value: 'border-0' },
        rounded: { type: 'exRoundedSelect', name: '边框圆角', value: 'rounded-none' },
        labelText: { type: 'exInput', name: '标签', value: '' },
        labelPosition: {
          type: 'exRadioGroup',
          name: '标签位置',
          value: 'center',
          list: [
            { label: '居左', value: 'left' },
            { label: '居中', value: 'center' },
            { label: '居右', value: 'right' },
          ],
        },
        topMargin: { type: 'exInputNumber', name: '上外边距', value: 0 },
        rightMargin: { type: 'exInputNumber', name: '右外边距', value: 0 },
        bottomMargin: { type: 'exInputNumber', name: '下外边距', value: 0 },
        leftMargin: { type: 'exInputNumber', name: '左外边距', value: 0 },
      },
      list: [
        {
          _id: 'uiDesignBox_g06nhi',
          VERSION: '20220408',
          type: 'uiDesignBox',
          name: '布局盒子',
          icon: 'checkbox-blank-line',
          extension: {
            boxHeight: { type: 'exInputNumber', controlsPosition: 'right', name: '高度', value: 90, min: 1, max: 100 },
            design: {
              type: 'exDesignLayout',
              name: '盒子设计',
              value: [
                { flex: 3, colum: [{ flex: 1 }, { index: 12, flex: 2 }, { index: 12, flex: 1 }] },
                { flex: 1, colum: [{ flex: 1 }, { index: 12, flex: 2 }, { index: 12, flex: 1 }] },
              ],
            },
            showLine: { type: 'exSwitch', name: '显示分割线', value: true, tooltip: '' },
          },
          list: [
            {
              _id: 'layoutBoxp2ap',
              name: '盒子',
              list: [
                {
                  _id: 'layoutBox5ma0',
                  name: '盒子',
                  list: [
                    {
                      _id: 'uiDesignBox_i95nkz',
                      VERSION: '20220408',
                      type: 'uiDesignBox',
                      name: '布局盒子',
                      icon: 'checkbox-blank-line',
                      extension: {
                        boxHeight: { type: 'exInputNumber', controlsPosition: 'right', name: '高度', value: 66, min: 1, max: 100 },
                        design: {
                          type: 'exDesignLayout',
                          name: '盒子设计',
                          value: [
                            { flex: 1, colum: [{ flex: 1 }] },
                            { flex: 1, colum: [{ flex: 1 }] },
                          ],
                        },
                        showLine: { type: 'exSwitch', name: '显示分割线', value: true, tooltip: '' },
                      },
                      list: [
                        { _id: 'layoutBoxm12r', name: '盒子', list: [{ _id: 'layoutBox2ksv', name: '盒子', list: [] }] },
                        { _id: 'layoutBoxf44i', name: '盒子', list: [{ _id: 'layoutBoxb73a', name: '盒子', list: [] }] },
                      ],
                    },
                  ],
                },
                { _id: 'layoutBoxq9ss', name: '盒子', list: [] },
                {
                  _id: 'layoutBox1g15',
                  name: '盒子',
                  list: [
                    {
                      _id: 'uiDesignBox_uppmli',
                      VERSION: '20220408',
                      type: 'uiDesignBox',
                      name: '布局盒子',
                      icon: 'checkbox-blank-line',
                      extension: {
                        boxHeight: { type: 'exInputNumber', controlsPosition: 'right', name: '高度', value: 66, min: 1, max: 100 },
                        design: {
                          type: 'exDesignLayout',
                          name: '盒子设计',
                          value: [
                            { flex: 1, colum: [{ flex: 1 }] },
                            { flex: 1, colum: [{ flex: 1 }] },
                          ],
                        },
                        showLine: { type: 'exSwitch', name: '显示分割线', value: true, tooltip: '' },
                      },
                      list: [
                        { _id: 'layoutBox7k80', name: '盒子', list: [{ _id: 'layoutBoxnk7b', name: '盒子', list: [] }] },
                        { _id: 'layoutBoxaudo', name: '盒子', list: [{ _id: 'layoutBox6edz', name: '盒子', list: [] }] },
                      ],
                    },
                  ],
                },
              ],
            },
            {
              _id: 'layoutBox70js',
              name: '盒子',
              list: [
                { _id: 'layoutBox6eds', name: '盒子', list: [] },
                { _id: 'layoutBoxns79', name: '盒子', list: [] },
                { _id: 'layoutBoxlf5t', name: '盒子', list: [] },
              ],
            },
          ],
        },
      ],
    },
  ],
}
